//
//  ByLARViewModel.h
//  jmsfhz_ios
//
//  Created by pro on 16/7/26.
//  Copyright © 2016年 pro. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol ByLARLoginDelegate;
@protocol ByLARRegisterDelegate;

@interface ByLARViewModel : NSObject

@property (nonatomic, weak) id<ByLARLoginDelegate>loginDelegate;
@property (nonatomic, weak) id<ByLARRegisterDelegate>registerDelegate;

- (void)login:(ByNetParamsModel *)params;                   // 登陆

- (void)registe:(ByNetParamsModel *)params;                 // 注册
- (void)getCode:(ByNetParamsModel *)params;                 // 获取验证码

@end



/** 登陆代理 */
@protocol ByLARLoginDelegate <NSObject>

- (void)loginSuccess:(ByNetBaseResult *)result;
- (void)loginFailure:(ByNetBaseResult *)result;
@end

/** 注册代理 */
@protocol ByLARRegisterDelegate <NSObject>

- (void)registerSuccess:(ByNetBaseResult *)result;
- (void)registerFailure:(ByNetBaseResult *)result;
- (void)getCodeSuccess:(ByNetBaseResult *)result;
- (void)getCodeFailure:(ByNetBaseResult *)result;


@end